package dao;

import entity.Role;

import java.util.Collection;

/**
 * Created by asus on 2017/6/20.
 */
public interface RoleDAO {
    /**
     * 保存role  目的可以将主键带出
     * @param role
     */
    public void save(final Role role);

    public void deleteById(Long id) ;

    public void update(Role role) ;

    public Role findById(Long id) ;

    public Collection<Role> findByIds(Collection<Long> ids) ;

    /**
     * 分页查询
     * @param page
     * @param size
     * @return
     */
    public Collection<Role> findPage(int page, int size);
}
